package m_log

import (
	"github.com/cihub/seelog"
	"log"
)

func SetupLogger(configPath string) {
	logger, err := seelog.LoggerFromConfigAsFile(configPath)
	if err != nil {
		log.Fatal(err)
	}
	defer logger.Flush()
	err = seelog.ReplaceLogger(logger)
	if err != nil {
		log.Fatal(err)
	}
}
